home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Compute! Gazette 1985 March
/
1985-03.d64
/
baker's dozen 4
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-09-20
|
2KB
|
53 lines
10 printchr$(147)chr$(28):poke53280,1:poke53281,1
20 forl=54272to54295:pokel,0:next:poke54296,15
25 poke54277,190:poke54278,255:poke54282,190
30 poke54285,255:poke54276,65:poke54283,65:poke54275,8:poke54282,8
40 f=1:g=1.5:l=10:h=10:i=h*g:z=54272:y=54273:zz=54279:yy=54280:v=1398:c=54272
50 forq=1to9:print:next:printtab(9)"please turn up volume"
55 print:printtab(5)"hit run/stop-restore to stop"
60 fort=1to2000:next:printchr$(147)
100 a=int(5*rnd(1)):b=int(13*rnd(1))+2
105 forn=1toa:pokev,67:pokev+c,b
108 v=v+1:pokey,h:pokez,l:pokeyy,i:pokezz,l:h=h+f:i=i+f:next
110 ifh>243thenh=10:i=h*g
120 pokev,73:pokev+c,b:v=v+40:x=int(2*rnd(1))+1:onxgoto700,800
200 a=int(5*rnd(1)):b=int(13*rnd(1))+2
205 forn=1toa:pokev,67:pokev+c,b
208 v=v+1:pokey,h:pokez,l:pokeyy,i:pokezz,l:h=h+f:i=i+f:next
210 ifh>243thenh=10:i=h*g
220 pokev,75:pokev+c,b:v=v-40:x=int(2*rnd(1))+1:onxgoto500,600
300 a=int(5*rnd(1)):b=int(13*rnd(1))+2
305 forn=1toa:pokev,67:pokev+c,b
308 v=v-1:pokey,h:pokez,l:pokeyy,i:pokezz,l:h=h-f:i=i-f:next
310 ifh<12thenh=10:i=h*g
320 pokev,85:pokev+c,b:v=v+40:x=int(2*rnd(1))+1:onxgoto700,800
400 a=int(5*rnd(1)):b=int(13*rnd(1))+2
405 forn=1toa:pokev,67:pokev+c,b
408 v=v-1:pokey,h:pokez,l:pokeyy,i:pokezz,l:h=h-f:i=i-f:next
410 ifh<12thenh=10:i=h*g
420 pokev,74:pokev+c,b:v=v-40:x=int(2*rnd(1))+1:onxgoto500,600
500 a=int(5*rnd(1)):b=int(13*rnd(1))+2
505 forn=1toa:pokev,66:pokev+c,b
508 v=v-40:pokey,h:pokez,l:pokeyy,i:pokezz,l:h=h+f:i=i+f:next
510 ifh>243thenh=10:i=h*g
515 pokev,73:pokev+c,b:v=v-1:ifv<1384then300
520 x=int(2*rnd(1))+1:onxgoto300,400
600 a=int(5*rnd(1)):b=int(13*rnd(1))+2
605 forn=1toa:pokev,66:pokev+c,b
608 v=v-40:pokey,h:pokez,l:pokeyy,i:pokezz,l:h=h+f:i=i+f:next
610 ifh>243thenh=10:i=h*g
615 pokev,85:pokev+c,b:v=v+1:ifv<1384then100
620 x=int(2*rnd(1))+1:onxgoto100,200
700 a=int(5*rnd(1)):b=int(13*rnd(1))+2
705 forn=1toa:pokev,66:pokev+c,b
708 v=v+40:pokey,h:pokez,l:pokeyy,i:pokezz,l:h=h-f:i=i-f:next
710 ifh<12thenh=10:i=h*g
715 pokev,75:pokev+c,b:v=v-1:ifv>1683then400
720 x=int(2*rnd(1))+1:onxgoto300,400
800 a=int(5*rnd(1)):b=int(13*rnd(1))+2
805 forn=1toa:pokev,66:pokev+c,b
808 v=v+40:pokey,h:pokez,l:pokeyy,i:pokezz,l:h=h-f:i=i-f:next
810 ifh<12thenh=10:i=h*g
815 pokev,74:pokev+c,b:v=v+1:ifv>1683then200
820 x=int(2*rnd(1))+1:onxgoto100,200